Alexander Larsson [Thu, 23 Aug 2012 13:51:13 +0000 (15:51 +0200)]
Fix flashing in non-double-buffered widgets
Avoid copying back partially drawn double-buffer data
when flushing to avoid flicker. This means non double
buffered widgets must draw opaque pixels in its expose
handlers, and that you are not allowed to use direct
rendering (or modify GdkWindow pos/size/order) from
inside the expose handler of a double buffered widget.
See https://bugzilla.gnome.org/show_bug.cgi?id=679144 for more
details
Ryan Lortie [Thu, 23 Aug 2012 12:18:11 +0000 (08:18 -0400)]
GtkWidget: fix insert_action_group(NULL)
gtk_widget_insert_action_group (widget, "foo", NULL) is valid, but
g_action_muxer_insert (muxer, "foo", NULL) is not. Use
g_action_muxer_remove() for that case.
Alexander Larsson [Thu, 23 Aug 2012 09:59:00 +0000 (11:59 +0200)]
gdkwindow.c: Fix up window debug code
Make this build and fully print clip regions.
Alexander Larsson [Wed, 22 Aug 2012 15:01:15 +0000 (17:01 +0200)]
Avoid unnecessary window flushes
The code was calling _gdk_window_ref_cairo_surface in a few places
where the intent was not to read/write to the surface, but just look
at its type (to e.g. create a similar surface). This is bad, as that
operation causes a flush which may cause unnecessary work and/or
flashing. Instead we just get the impl surface in these cases.
Chao-Hsiung Liao [Thu, 23 Aug 2012 07:40:42 +0000 (15:40 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Michael Natterer [Thu, 23 Aug 2012 07:28:13 +0000 (09:28 +0200)]
quartz: add evil casting to make sure time wraps correctly on 32bit machines
get_time_from_ns_event(): apply patch from Michael Hutchinson which
makes sure the returned guint32 wraps correctly on 32 bit machines
when the uptime exceeds 2^32 ms.
Piotr Drąg [Wed, 22 Aug 2012 22:01:33 +0000 (00:01 +0200)]
Updated Polish translation
John Ralls [Wed, 22 Aug 2012 21:38:53 +0000 (14:38 -0700)]
Protect pasteboard GtkTargetPair flag values from being out of range
John Ralls [Thu, 26 Jul 2012 22:21:02 +0000 (15:21 -0700)]
Implement gdk_quartz_keymap_lookup_key
John Ralls [Mon, 16 Jul 2012 22:09:28 +0000 (15:09 -0700)]
Copy in annotations missing from gtkdnd-quartz and gtkclipboard-quartz
Alexandre Franke [Wed, 22 Aug 2012 14:22:06 +0000 (16:22 +0200)]
Update French translation
Alexandre Franke [Wed, 22 Aug 2012 13:37:11 +0000 (15:37 +0200)]
Fix French translation
Kjartan Maraas [Wed, 22 Aug 2012 08:29:59 +0000 (10:29 +0200)]
Updated Norwegian bokmål translation
Ryan Lortie [Wed, 22 Aug 2012 04:54:57 +0000 (00:54 -0400)]
GtkActionHelper: two small fixups in _set_target_value()
First, ensure we always consume floating values, as documented.
Second (and more serious), don't try to query the action if the
action name is not set yet. This will cause crashes...
Nguyễn Thái Ngọc Duy [Wed, 22 Aug 2012 02:02:05 +0000 (09:02 +0700)]
Updated Vietnamese translation
Nguyễn Thái Ngọc Duy [Wed, 22 Aug 2012 01:59:12 +0000 (08:59 +0700)]
po/vi: imported from Damned Lies
William Jon McCann [Fri, 10 Aug 2012 17:41:48 +0000 (13:41 -0400)]
Don't left align label in check buttons when they have no indicator
Because they should be normal buttons in that case.
https://bugzilla.gnome.org/show_bug.cgi?id=681617
Cosimo Cecchi [Tue, 21 Aug 2012 09:15:32 +0000 (11:15 +0200)]
modelmenu: fix a GCC warning
This should not be a const string, since the caller is supposed to free
it.
Cosimo Cecchi [Tue, 21 Aug 2012 09:14:46 +0000 (11:14 +0200)]
textview: fix a typo in method gtk-doc annotation
This was causing a warning from the introspection scanner.
Cosimo Cecchi [Tue, 21 Aug 2012 09:14:16 +0000 (11:14 +0200)]
menubutton: use consistent parameter names
Or the introspection scanner will emit a warning.
Andika Triwidada [Tue, 21 Aug 2012 05:21:01 +0000 (12:21 +0700)]
Updated Indonesian translation for Property Nicks
Dirgita [Tue, 21 Aug 2012 05:20:22 +0000 (12:20 +0700)]
Updated Indonesian translation
Matthias Clasen [Tue, 21 Aug 2012 04:50:07 +0000 (00:50 -0400)]
Bump version
Matthias Clasen [Tue, 21 Aug 2012 02:12:03 +0000 (22:12 -0400)]
3.5.12
Matthias Clasen [Tue, 21 Aug 2012 03:37:43 +0000 (23:37 -0400)]
Fix the doc build
Matthias Clasen [Tue, 21 Aug 2012 03:37:26 +0000 (23:37 -0400)]
Fix exports for new symbols
Matthias Clasen [Thu, 16 Aug 2012 18:27:27 +0000 (14:27 -0400)]
Add documentation
Document the new API and properties, and their interaction with
existing properties.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Matthias Clasen [Thu, 16 Aug 2012 18:29:38 +0000 (14:29 -0400)]
GtkTextView: Add input purpose and hints
Add input-purpose and input-hints properties and pass these through
to the GtkIMContext.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Matthias Clasen [Thu, 16 Aug 2012 18:27:51 +0000 (14:27 -0400)]
GtkEntry: Add input purpose and hints
Add input-purpose and input-hints properties to GtkEntry,
and pass these on to GtkIMContext.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Matthias Clasen [Thu, 16 Aug 2012 05:36:59 +0000 (01:36 -0400)]
GtkIMContext: Add purpose and hints
Add input-purpose and input-hints properties to GtkIMContext.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Krzesimir Nowak [Tue, 29 May 2012 14:19:49 +0000 (16:19 +0200)]
enums: Add purpose enum and hints flags.
This commit adds two enumerations that will be used
to pass additional information to input methods, in
the subsequent commits.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Ryan Lortie [Mon, 20 Aug 2012 21:03:15 +0000 (17:03 -0400)]
GtkMenuButton: rename _set_menu() to _set_popup()
It's too close to the release so we'll keep _set_menu() around, but
deprecate it, pointing to the new API. It will be removed (and the name
reused) before the 3.6.0 release.
https://bugzilla.gnome.org/show_bug.cgi?id=682235
Aurimas Černius [Mon, 20 Aug 2012 20:26:17 +0000 (23:26 +0300)]
Updated Lithuanian translation
Piotr Drąg [Mon, 20 Aug 2012 19:53:00 +0000 (21:53 +0200)]
Updated POTFILES.skip
Daniel Mustieles [Mon, 20 Aug 2012 18:05:05 +0000 (20:05 +0200)]
Updated Spanish translation
William Jon McCann [Fri, 10 Aug 2012 17:23:20 +0000 (13:23 -0400)]
icon-view: emit selection-changed when changing the model
Only if there was a selection active.
https://bugzilla.gnome.org/show_bug.cgi?id=681613
Cosimo Cecchi [Mon, 20 Aug 2012 17:16:32 +0000 (19:16 +0200)]
visuals: add a visual test for suggested-action buttons
And selection-mode toolbars.
Lars Uebernickel [Wed, 20 Jun 2012 14:56:56 +0000 (16:56 +0200)]
gtkmodelmenu: add support for action namespaces
If a section or submenu item has a "action-namespace" attribute, the
action names of the created GtkModelMenuItems will be prefixed with that
namespace. Namespaces can be cascaded.
Ryan Lortie [Sat, 18 Aug 2012 03:28:53 +0000 (23:28 -0400)]
GtkApplicationWindow: drop GActionMuxer use
There are no remaining users of the GActionMuxer in GtkApplicationWindow
because they've all been ported over to using the one on GtkWidget (via
GtkActionHelper, for the most part).
Ryan Lortie [Sat, 18 Aug 2012 03:28:08 +0000 (23:28 -0400)]
Drop GSimpleActionObserver
The only place that this was being created was in GtkApplicationWindow
and the last commit dropped that code.
Ryan Lortie [Sat, 18 Aug 2012 03:26:44 +0000 (23:26 -0400)]
Remove private appwindow observer creation API
There are no remaining users of the GtkApplicationWindow API to create
GSimpleActionObserver or to get the GActionObservable (ie: muxer) for
the appwindow. Drop those APIs.
Lars Uebernickel [Sat, 18 Aug 2012 03:23:51 +0000 (23:23 -0400)]
ApplicationWindow: setup accels with widget muxer
Use the muxer from GtkWidget to setup the accels rather than our own
local muxer (which will soon be removed).
Ryan Lortie [Sat, 18 Aug 2012 03:21:33 +0000 (23:21 -0400)]
Remove #include for muxer from gtkapplication.c
William Hua [Sat, 18 Aug 2012 03:19:57 +0000 (23:19 -0400)]
Action helper support in Mac OS menus.
Ryan Lortie [Sat, 18 Aug 2012 03:13:42 +0000 (23:13 -0400)]
gtkmodelmenu: move to new action regime
Drop the explicit passing of GActionGroup into the GtkMenu(Bar)
constructors and operate from the action context instead.
With GtkMenuItem implementing GtkActionable, this turns out to be pretty
easy (and most of the code can be removed from GtkModelMenuItem,
including the GActionObserver implementation).
Ryan Lortie [Sat, 18 Aug 2012 03:01:53 +0000 (23:01 -0400)]
GtkMenuItem: implement GtkActionable
...using the new GtkActionHelper
Ryan Lortie [Fri, 17 Aug 2012 22:27:21 +0000 (18:27 -0400)]
port GtkButton to GtkActionHelper
Ryan Lortie [Fri, 17 Aug 2012 22:26:53 +0000 (18:26 -0400)]
port GtkSwitch to GtkActionHelper
Lars Uebernickel [Fri, 17 Aug 2012 22:21:59 +0000 (18:21 -0400)]
Add two users of gtk_widget_insert_action_group
Each GtkWindow with an associated GtkApplication should add this as
"app" to its action context. Each GtkApplicationWindow is its own
GActionGroup, and it should add itself to itself with the prefix "win".
There is now some duplication here because we have the new GActionMuxer
hierarchy managed by GtkWidget, but GtkApplicationWindow still carries
its own muxer. The redundancy will be removed in a future patch.
Ryan Lortie [Fri, 17 Aug 2012 22:13:02 +0000 (18:13 -0400)]
introduce private GtkActionHelper
The current process of implementing GActionObserver is annoying and the
GSimpleActionObserver interface leaves a lot to be desired. Introduce a
new class, GtkActionHelper that gives you pretty much everything you'd
want to do as an implementor of GtkActionable.
The GtkActionHelper also features an "application" mode that is not
associated with a particular GtkWidget but rather with whatever widget
happens to be the active window of the given GtkApplication at a
particular point in time. This will be useful for the Mac OS menubar.
Lars Uebernickel [Fri, 17 Aug 2012 22:09:35 +0000 (18:09 -0400)]
GtkWidget: Add gtk_widget_insert_action_group()
This allows adding a GActionGroup with a given name at an arbitrary
point in the widget tree.
This patch also adds an internal _get_action_muxer() API. Calling this
will create a GActionMuxer associated with the widget. The parent of
the muxer will be the muxer of the widget's conceptual parent. For
non-menus, that is the normal parent. For menus, it is the attach
widget.
In this way, we end up with a hierarchy of GActionMuxer that largely
reflects the hierarchy of GtkWidget, but only in places that the action
context has been requested. These muxers are the ones on which the
inserted actions groups are installed.
A following patch will add a user of this API.
Ryan Lortie [Fri, 17 Aug 2012 22:05:27 +0000 (18:05 -0400)]
GtkApplication: add 'active-window' property
Lars Uebernickel [Fri, 17 Aug 2012 17:16:51 +0000 (13:16 -0400)]
GActionMuxer: add support for parent muxers
If a muxer does not contain an action group with the given prefix, chain
up to the "parent" muxer to look for it.
This initial implementation is rather inefficient. It will lead to
changes on action groups associated with parent muxers being broadcast
to all children (regardless of if anybody there is interested or not).
An optimised version will follow soon.
Alexander Larsson [Mon, 20 Aug 2012 15:06:14 +0000 (17:06 +0200)]
GtkMountOperation: Return the right password_save
If the buttons were never sent we returned the wrong
default value (i.e. not what the UI displayed).
Emmanuele Bassi [Mon, 20 Aug 2012 10:02:37 +0000 (11:02 +0100)]
docs: Fix up the RadioButton example in the description
Duarte Loreto [Sun, 19 Aug 2012 22:40:49 +0000 (23:40 +0100)]
Updated Portuguese translation
Duarte Loreto [Sun, 19 Aug 2012 22:33:26 +0000 (23:33 +0100)]
Updated Portuguese translation
Frédéric Péters [Sun, 19 Aug 2012 17:07:22 +0000 (19:07 +0200)]
doc: fix location of ATK documentation (GNOME bug 682193)
YunQiang Su [Sat, 18 Aug 2012 03:16:59 +0000 (11:16 +0800)]
fix an typo in zh_CN translation
Fran Diéguez [Fri, 17 Aug 2012 21:20:36 +0000 (23:20 +0200)]
Updated Galician translations
Sandeep Sheshrao Shedmake [Fri, 17 Aug 2012 09:15:54 +0000 (14:45 +0530)]
Updated Marathi Translations
Sandeep Sheshrao Shedmake [Fri, 17 Aug 2012 09:04:04 +0000 (14:34 +0530)]
Updated Marathi Translations
Мирослав Николић [Fri, 17 Aug 2012 08:34:24 +0000 (10:34 +0200)]
Updated Serbian translation
Fran Diéguez [Thu, 16 Aug 2012 21:30:07 +0000 (23:30 +0200)]
Updated Galician translations
Colin Walters [Thu, 16 Aug 2012 14:36:54 +0000 (10:36 -0400)]
GtkEntryAccessible: Remove unused variable
Daniel Mustieles [Thu, 16 Aug 2012 14:10:50 +0000 (16:10 +0200)]
Updated Spanish translation
Chun-wei Fan [Wed, 15 Aug 2012 07:52:01 +0000 (15:52 +0800)]
gtk/gtklevelbar.c: Fix build on non-C99 compilers
-Include fallback-c89.c for the usage of round(), where an implementation
of round() is provided for compilers that don't have it
-Use g_ascii_strtod() instead of strtof as strtof() may not be universally
available.
Chun-wei Fan [Wed, 15 Aug 2012 07:48:15 +0000 (15:48 +0800)]
Update Visual C++ 2010 project files
-Turn on Whole Program Optimization for all Release builds.
-Disable Incremental Linking for all Release builds.
-Use MultiByte character set for all configurations for consistency.
Chun-wei Fan [Wed, 15 Aug 2012 07:07:15 +0000 (15:07 +0800)]
Update Visual C++ 2008 projects
-Enhance optimization by turning on WholeProgramOptimization for all
Release builds
-Disable IncrementalLinking for all Release builds
-Make sure we are using MultiByte character set, to be consistent across
the board for all configurations
Colin Walters [Tue, 14 Aug 2012 23:47:28 +0000 (19:47 -0400)]
Fix _gtk_entry_get_borders() declaration
Regression introduced by https://bugzilla.gnome.org/show_bug.cgi?id=681591
David King [Fri, 4 May 2012 02:25:22 +0000 (03:25 +0100)]
docs: Clarify GtkToggleButton action documentation
https://bugzilla.gnome.org/show_bug.cgi?id=373279
Stef Walter [Fri, 10 Aug 2012 18:12:39 +0000 (03:12 +0900)]
Allow building with CFLAGS=-Werror
Allow building using:
$ CFLAGS=-Werror sh autogen.sh --prefix=/xxx
William Jon McCann [Fri, 10 Aug 2012 16:23:02 +0000 (12:23 -0400)]
Fix typo in documentation
Mario Sanchez Prada [Fri, 10 Aug 2012 16:05:58 +0000 (18:05 +0200)]
Update accessibility unit tests to consider password fields.
Updated test/a11y/entries.ui to include a new GtkEntry with
'visibility' set to FALSE, and update expectations.
https://bugzilla.gnome.org/show_bug.cgi?id=681591
Mario Sanchez Prada [Fri, 10 Aug 2012 16:04:57 +0000 (18:04 +0200)]
Expose the masked string for password fields to assistive technologies.
Call _gtk_entry_get_display_text()from gtkentryaccessible.c to make
sure we always consider the actual text being displayed when
implementing the functions from the AtkTet interface.
https://bugzilla.gnome.org/show_bug.cgi?id=681591
Mario Sanchez Prada [Fri, 10 Aug 2012 16:03:17 +0000 (18:03 +0200)]
Export gtk_entry_get_display_text() as a private function through
gtkentryprivate.h, so we can use it from gtkentryaccessible.c
https://bugzilla.gnome.org/show_bug.cgi?id=681591
Nilamdyuti Goswami [Fri, 10 Aug 2012 15:27:31 +0000 (20:57 +0530)]
Assamese translation updated
Cosimo Cecchi [Fri, 10 Aug 2012 11:28:01 +0000 (13:28 +0200)]
appchooserdialog: add a missing label mnemonic
https://bugzilla.gnome.org/show_bug.cgi?id=681577
Ryan Lortie [Fri, 10 Aug 2012 02:44:04 +0000 (22:44 -0400)]
po/eo.po: fix translations for GtkSwitch
Translating "ON" as "EK" (verb prefix for beginning of an action) and
"OFF" as "FOR" (away) is suboptimal. Just use the suggested 1/0 glpyhs
instead.
The previous translator was clearly insane.
Nilamdyuti Goswami [Wed, 8 Aug 2012 15:30:11 +0000 (21:00 +0530)]
Assamese translation updated
Nilamdyuti Goswami [Wed, 8 Aug 2012 12:42:14 +0000 (18:12 +0530)]
Assamese translation updated
Nilamdyuti Goswami [Wed, 8 Aug 2012 12:30:28 +0000 (18:00 +0530)]
Assamese translation updated
Claudio Saavedra [Wed, 4 Apr 2012 08:10:44 +0000 (11:10 +0300)]
Chain up relevant GObjectClass:notify vfuncs
These widgets have ancestors other than GObject which could eventually
implement the notify vfunc for their properties. For correctness, they
should chain up the notify vfunc.
https://bugzilla.gnome.org/show_bug.cgi?id=673478
Cosimo Cecchi [Tue, 7 Aug 2012 11:09:42 +0000 (13:09 +0200)]
toolbar: deprecate shadow-type style property
While shadow-type *properties* can make sense, to opt-out of the
padding/border machinery programmatically, having it as a style
property doesn't make any sense, since we have a better way to change
the bevel style from the theme already.
This commit deprecates the shadow-type style property in GtkToolbar.
Cosimo Cecchi [Tue, 7 Aug 2012 14:05:30 +0000 (16:05 +0200)]
toolbar: don't request CSS padding twice
This is a regression from commit
d0d21a4f00fee2c931dc3217bd89518dfcf7fe2a.
We are requesting the CSS padding twice: once unconditionally and
another time if SHADOW_TYPE != NONE, which is usually the case.
Cosimo Cecchi [Tue, 7 Aug 2012 10:54:30 +0000 (12:54 +0200)]
toolbar: deprecate internal-padding style property
This is equivalent to a regular CSS padding, and that's what people
should use.
Chao-Hsiung Liao [Tue, 7 Aug 2012 05:41:47 +0000 (13:41 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Matthias Clasen [Tue, 7 Aug 2012 05:37:59 +0000 (01:37 -0400)]
Bump version
Matthias Clasen [Tue, 7 Aug 2012 05:21:17 +0000 (01:21 -0400)]
3.5.10
Matthias Clasen [Tue, 7 Aug 2012 05:17:51 +0000 (01:17 -0400)]
Update expected dump output for color choooser
Matthias Clasen [Tue, 7 Aug 2012 04:58:46 +0000 (00:58 -0400)]
Updates
Matthias Clasen [Tue, 7 Aug 2012 04:38:48 +0000 (00:38 -0400)]
Optimize gtk_widget_path_copy() by preallocating "elems" array
gtk_widget_path_copy() currently calls g_array_append_val() in a loop,
which is inefficient due to reallocating the array's memory. Calling
g_array_set_size() before entering the loop reduces the number of CPU
cycles used by roughly 30%.
Patch by John Lindgren,
https://bugzilla.gnome.org/show_bug.cgi?id=679978
Matthias Clasen [Tue, 7 Aug 2012 03:37:36 +0000 (23:37 -0400)]
Fix a memory leak
As Pavel Vesin pointed out in bug 681064, we were leaking
the container_restyle_queue.
Matthias Clasen [Tue, 7 Aug 2012 02:56:59 +0000 (22:56 -0400)]
Fix DND keyboard control with XI2
We are using XI2 to grab the key events, but we did not do the
necessary extra work to make GDK deliver root window events to us.
https://bugzilla.gnome.org/show_bug.cgi?id=681006
Matthias Clasen [Tue, 7 Aug 2012 02:26:13 +0000 (22:26 -0400)]
Improve GtkMenuButton menu positioning
Take the menu halign/valign into consideration when positioning
the menu. Also, document the various combinations.
https://bugzilla.gnome.org/show_bug.cgi?id=680988
Matthias Clasen [Mon, 6 Aug 2012 23:44:17 +0000 (19:44 -0400)]
Remove references to deprecated functions
This inconsistency of the docs was pointed out by
Pierre-Yves Luyten in bug 680949.
Javier Jardón [Mon, 6 Aug 2012 18:19:38 +0000 (03:19 +0900)]
gtk/gtkadjustment.c: Improve docs
Refer to #GtkAdjustment properties instead fields
Matthias Clasen [Mon, 6 Aug 2012 12:34:46 +0000 (08:34 -0400)]
Leave GDK_THREADS_ENTER/LEAVE visible for now
Not defining these macros at all causes harsh build breakages.
Better to leave them defined (but documented as deprecated) for now.
Everybody will still get the deprecation warnings for the underlying
gdk_threads_enter/leave.
We can hide the macros again later on when the world has had some
time to port off GDK threads.
Paolo Borelli [Sat, 4 Aug 2012 15:22:38 +0000 (17:22 +0200)]
Make GtkToolbar honour css border and padding
The widget is already calling gtk_render_frame, but is not measuring css
border and padding when negotiating its size. This patch replaces the
already existing get_internal_padding static helper with a function that
sums the old internal-padding value with the values specified via css.
Rico Tzschichholz [Sun, 5 Aug 2012 07:56:58 +0000 (09:56 +0200)]
cups: Use IPP api when necessary with CUPS 1.6